<div class="pagination">
	<input type="hidden" id="{$preffix}-page" name="page" value="{$current_page}">
	<div>
		{if $smarty.foreach.records.total==0}
			{assign var="start" value=0}
		{else}
			{assign var="start" value=$offset+1}
		{/if}
		({__ t='results :start to :end of :total items within :total_pages pages ' start=$current_first_item end=$current_last_item total=$total_items total_pages=$total_pages})
			{__ t="with"}
			<input type="text" class="itens_per_page" id="{$preffix}-itens_per_page" name="itens_per_page" value="{$items_per_page}" onChange="report_refresh('{$preffix}')"/>
			{__ t="itens per page"}
	</div>
	{if FALSE!==$first_page}<a href="javascript: change_page('{$preffix}',{$first_page});">{__ t='First'}</a>{else}{__ t='First'}{/if}
	{if FALSE!==$previous_page}<a href="javascript: change_page('{$preffix}',{$previous_page});">{__ t='Previous'}</a>{else}{__ t='Previous'}{/if}
	{html_options name=paging options=$page_array selected=$current_page onchange="change_page('{$preffix}',this.value);"}
	{if FALSE!==$next_page}<a href="javascript: change_page('{$preffix}',{$next_page});">{__ t='Next'}</a>{else}{__ t='Next'}{/if}
	{if FALSE!==$last_page}<a href="javascript: change_page('{$preffix}',{$last_page});">{__ t='Last'}</a>{else}{__ t='Last'}{/if}
</div>